package com.usian.day02.order.client.fegin;

import com.usian.common.model.day02.Order;
import com.usian.common.vo.ResultResopnse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2023/7/27 9:13
 */
@FeignClient("day02order")
public interface OrderFegin {

    @GetMapping("/order/list")
    public ResultResopnse list();
    @PostMapping("/order/save")
    public ResultResopnse save(@RequestBody Order order);

    @GetMapping("/order/{id}")
    public ResultResopnse findById(@PathVariable("id") String id);

}
